package com.mcp.converter.shared.exception;

/**
 * 数据库迁移异常
 * 
 * @author zengxiong
 */
public class DatabaseMigrationException extends RuntimeException {
    
    private final String code;
    
    public DatabaseMigrationException(String message) {
        super(message);
        this.code = "DATABASE_MIGRATION_ERROR";
    }
    
    public DatabaseMigrationException(String message, Throwable cause) {
        super(message, cause);
        this.code = "DATABASE_MIGRATION_ERROR";
    }
    
    public DatabaseMigrationException(String code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }
    
    public String getCode() {
        return code;
    }
} 